
from flask import Flask, render_template

app = Flask(__name__)


@app.route('/')
def index():
    return render_template(
        'index.html',
        name='AniPython',
        list_=['a', 'b', 'c'],
        html_str="""
        <p>鹅鹅鹅</p>
        <p>曲项向天歌</p>
        <p>白毛浮绿水</p>
        <p>红掌拨清波</p>
        """
    )


@app.route('/article')
def article():
    return render_template('article.html')


@app.route('/detail')
def detail():
    return render_template('detail.html')


if __name__ == '__main__':
    app.run(port=5001)
